package com.yyl.rbacs.controller;

import com.baomidou.kaptcha.Kaptcha;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @BelongsProject: rbacs
 * @BelongsPackage: com.yyl.rbacs.controller
 * @Author: YuanSir
 * @CreateTime: 2022-10-28  13:45
 * @Description:
 * @Version: 1.0
 */

@Controller
public class KapcharController {
    
    @Autowired
    private Kaptcha kaptcha;
    
    @GetMapping("/captcha.jpg")
    public void render(){
    
        kaptcha.render();
    
    }
    
}
